wayland: Don't ignore wl_keyboard.leave if surface is gone
authorJonas Ådahl <jadahl@gmail.com>
Tue, 6 Oct 2015 06:30:28 +0000 (14:30 +0800)
committerJonas Ådahl <jadahl@gmail.com>
Wed, 7 Oct 2015 04:28:39 +0000 (12:28 +0800)
commitdad1931b5f4a64d105554681ec84d859f020d6e2
treeb223dbcd9a15b68790a6f4282543ed5a9e4fb57c
parent263cbd90a063afa214855e52e88908853d7a2b8d
wayland: Don't ignore wl_keyboard.leave if surface is gone

keyboard_handle_leave() might be called with a NULL surface resource
(for example if the surface was destroyed after the event was sent). If
so, we should still deal with the keyboard focus lost event, otherwise
we will both leak (the keyboard_focus GdkWindow reference) and miss
stopping the key repeat timer.

https://bugzilla.gnome.org/show_bug.cgi?id=755927
gdk/wayland/gdkdevice-wayland.c